package com.lzx.adx.report.enums;

/**
 * 58和媒体趣头条回调类型映射
 */
public enum QttTanTanEnum {
    register("android_register", "1"),
    day1retention("android_day1retention", "6"),
    ;

    private String productCode;

    private String qttCode;


    QttTanTanEnum(String productCode, String qttCode) {
        this.productCode = productCode;
        this.qttCode = qttCode;

    }

    public String getProductCode() {
        return productCode;
    }

    public String getQttCode() {
        return qttCode;
    }


    public static String getQttCode(String productCode) {
        QttTanTanEnum[] qttWBEnums = QttTanTanEnum.values();
        for (QttTanTanEnum qttWBEnum : qttWBEnums) {
            if (qttWBEnum.getProductCode().equals(productCode)) {
                return qttWBEnum.getQttCode();
            }
        }
        return null;
    }

}
